package com.example.mywork1;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.TextView;

public class friendDetail1 extends AppCompatActivity {
    private LinearLayout linearLayout;

    private TextView textView1,textView2,textView3;
    //private Intent intent;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_friend_detail1);
        textView1=findViewById(R.id.textView1);
        textView2=findViewById(R.id.textView2);
        textView3=findViewById(R.id.textView3);
        Intent intent=getIntent();
        String name=intent.getStringExtra("name");
        String area=intent.getStringExtra("area");
        String age=intent.getStringExtra("age");

        textView1.setText(name);
        textView2.setText(area);
        textView3.setText(age);
        linearLayout=findViewById(R.id.linearlayoutmoments);
        linearLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getApplicationContext(),moments1.class);
                startActivity(intent);
            }
        });



    }
}
